package com.fubowen.reader.db.bean

import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

@Entity(indices = [Index(value = ["bookId", "name"], unique = true)])
data class BookChapterBean(
    @PrimaryKey(autoGenerate = true)
    var id: Int = 0,
    var name: String = "",
    var order: Int = 0,
    var content: String = "",
    var timestamp: Long = System.currentTimeMillis(),
    var bookId: Int = 0,
    var isReading: Boolean = false,
    var position: Int = 0,
    var charCount: Int = 0,
    var url: String = "",
    var isDownload: Boolean = false
)
